import java.io.IOException;


import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;

import javax.portlet.PortletRequestDispatcher;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.UnavailableException;


public class simplest extends GenericPortlet
{
	   protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
	   {
	      rResponse.setContentType("text/html");
	     
	      PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/view.jsp");
	      prd.include(rRequest, rResponse);
	      
	   }
	   protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
	   {
	      rResponse.setContentType("text/html");
	      
	      String destino = (String) rRequest.getParameter("destino");
	      PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(destino);
	      prd.include(rRequest, rResponse);
	   }




}